Cocktail Help Reference
Publish(Object,Action<Action>) Method
See Also  Send Feedback
Cocktail Assembly > Cocktail Namespace > EventFns Class > Publish Method : Publish(Object,Action<Action>) Method



message
The message instance.
marshal
Allows the publisher to provide a custom thread marshaller for the message publication.

Glossary Item Box

Publishes a message.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function Publish( _
   ByVal message As Object, _
   ByVal marshal As Action(Of Action) _
) As Boolean
Visual Basic (Usage)Copy Code
Dim message As Object
Dim marshal As Action(Of Action)
Dim value As Boolean
 
value = EventFns.Publish(message, marshal)
C# 
public static bool Publish( 
   object message,
   Action<Action> marshal
)
C++/CLI 
public:
static bool Publish( 
   Object^ message,
   Action<Action^>^ marshal
) 

Parameters

message
The message instance.
marshal
Allows the publisher to provide a custom thread marshaller for the message publication.

Return Value

True if EventAggregator is available and operation was successful

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.